export function getTimeDifferenceDescription(timestamp) {
  const now = Date.now();
  const diffMs = now - timestamp;

  if (diffMs < 0) return null; // 未来时间，返回 null

  const diffMinutes = Math.floor(diffMs / (1000 * 60));
  const diffHours = Math.floor(diffMs / (1000 * 60 * 60));
  const diffDays = Math.floor(diffMs / (1000 * 60 * 60 * 24));
  const diffMonths = Math.floor(diffDays / 30);

  if (diffMinutes < 1) {
    return "1分钟";
  } else if (diffHours < 1) {
    return `${diffMinutes}分钟`;
  } else if (diffDays < 30) {
    return `${diffDays}天`;
  } else if (diffDays < 90) {
    return `${diffMonths}个月`;
  } else {
    return null;
  }
}
